﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YouHP.Model
{
    // 医生信息
    public class DoctorInfo : IHydratable
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Hospital { get; set; }
        public bool IsFamous { get; set; }
        public string Description { get; set; }
        public int PrescriptionCount { get; set; }
        public double PrescriptionAverageScore { get; set; }
        public int DiseaseId { get; set; }
        public DateTime CreateTime { get; set; }
        public List<PrescriptionInfo> Prescriptions { get; set; }

        public string Avatar { get; set; }

        // Default constructor
        public DoctorInfo()
        {
            Id = PrescriptionCount = DiseaseId -1;
            Name = Hospital = Description = Avatar = string.Empty;
            IsFamous = false;
            CreateTime = DateTime.MinValue;
            Prescriptions = new List<PrescriptionInfo>();
        }

        #region IHydratable 成员
        public bool Fill(System.Data.IDataReader dr)
        {
            return false;
        }
        #endregion
    }
}
